package ooday04homework;

public class Fish extends Animal implements Swim{


    Fish(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(name+"鱼在吃东西,年龄是："+age+"颜色是："+color);
    }

    @Override
    public void swim() {
        System.out.println(name+"鱼在游泳,年龄是："+age+"颜色是："+color);
    }
}
